package net.oschina.archx.rmi.service;

import net.oschina.archx.rmi.annotation.RemoteService;
import org.springframework.stereotype.Component;

/**
 * HelloRMIService
 *
 * @author Archx[archx@foxmail.com]
 * @date 2016/2/24 0024
 */
@Component("helloService")
@RemoteService(serviceName = "hello", serviceInterface = IHelloRMIService.class, registryPort = 8090)
public class HelloRMIService implements IHelloRMIService {

    @Override
    public String hello(String name) {
        return "Hello " + name;
    }
}
